const Mock=require('mockjs')

Mock.mock("/dev-api/getKshop",()=>{
    return Mock.mock({
        code:200,
        "list|5-10":[{
            id:"@id",
            name:"@cname",
            "newprice|5-100":5,
            "oldprice|0.1-0.5":0.1,
            img:"@image(100x100,@color)",
            'stateFlag|1':[false,true],//控制状态
        }] 
    })  
})


//拼团列表
Mock.mock("/dev-api/getPlist", () => {
    return Mock.mock({
      code:200,
      "list|5-10":[{
        id:"@id",
        name:"@cname",
        "newprice|5-100":5,
        "oldprice|0.1-0.5":0.1,
        img:"@image(100x100,@color)"
    }] 
    });
  });